diff --git a/Data/Word/General.hs b/Data/Word/General.hs
--- a/Data/Word/General.hs
+++ b/Data/Word/General.hs
@@ -48,7 +48,7 @@
 
 instance Natural n => Bits (Word n) where
     Word as .&. Word bs = Word (liftA2 (&&) as bs)
-    Word as .|. Word bs = Word (liftA2 (&&) as bs)
+    Word as .|. Word bs = Word (liftA2 (||) as bs)
     Word as `xor` Word bs = Word (liftA2 (/=) as bs)
     complement (Word as) = Word (not <$> as)
     shiftL (Word as) k = Word $ stimes k (Endo go) `appEndo` as
diff --git a/test/Main.hs b/test/Main.hs
new file mode 100644
--- /dev/null
+++ b/test/Main.hs
@@ -0,0 +1,8 @@
+module Main where
+
+import Test.SmallCheck
+import Test.Tasty
+import Test.Tasty.SmallCheck
+
+main :: IO ()
+main = pure ()
diff --git a/word.cabal b/word.cabal
--- a/word.cabal
+++ b/word.cabal
@@ -1,5 +1,5 @@
 name:                word
-version:             0.1.0.0
+version:             0.1.0.1
 synopsis:            Words of arbitrary size
 -- description:
 license:             BSD3
@@ -7,7 +7,7 @@
 author:              M Farkas-Dyck
 maintainer:          strake888@gmail.com
 copyright:           2018 M Farkas-Dyck
--- category:            
+category:            Data, Math, Numeric
 build-type:          Simple
 extra-source-files:  README.md
 cabal-version:       >=1.10
@@ -32,6 +32,35 @@
                      , FlexibleContexts
                      , FlexibleInstances
                      , GADTs
+                     , StandaloneDeriving
+                     , DeriveFunctor, DeriveFoldable, DeriveTraversable
+  ghc-options:         -Wall -Wcompat -Wredundant-constraints -Wno-name-shadowing
+                       -Wincomplete-record-updates -Wincomplete-uni-patterns
+                       -Werror=incomplete-patterns
+                       -Werror=incomplete-uni-patterns
+                       -Werror=incomplete-record-updates
+                       -Werror=missing-fields
+                       -Werror=missing-methods
+
+test-suite test
+  type:                exitcode-stdio-1.0
+  hs-source-dirs:      test
+  main-is:             Main.hs
+  build-depends:       base >=4.11 && <5
+                     , smallcheck >=1.1.4
+                     , tasty >=1.0
+                     , tasty-smallcheck >=0.8
+                     , word
+  default-language:    Haskell2010
+  default-extensions:  UnicodeSyntax
+                     , LambdaCase
+                     , EmptyCase
+                     , InstanceSigs
+                     , PartialTypeSignatures
+                     , PolyKinds
+                     , ConstraintKinds
+                     , FlexibleContexts
+                     , FlexibleInstances
                      , StandaloneDeriving
                      , DeriveFunctor, DeriveFoldable, DeriveTraversable
   ghc-options:         -Wall -Wcompat -Wredundant-constraints -Wno-name-shadowing
