Add tests for preference screen.