Function monadLaws

Test typeclass laws for Monad.