Added tests for users controller