testing arguments passed to resource methods