Add tests for Mode.