Unit tests for Mode class.