resources -> plural; added tests