Function contravariantLaws

Test typeclass laws for Contravariant and its requirement: Invariant.