Refactoring a little the resources service tests