Finished tests and implementation of userResource