added some tests for user controller