created tests for Resource module