add func test for user controller