Added tests for Applicative.