Add tests for local major mode variables