add test for userresource