Improve user link function test