Updated the tests for user controller and add tests to check for new preferences page