Add more tests for preferences