Adding more tests and eq in haskell version