test for user controller