Added tests for user controller