Improve resources method to allow pass parameters in the resource object. Add tests for the resources method and scope the use strict call.