Added unit tests for settings page