Adding test to Either monad