added tests for resources model