improve user unit test