Working on tests for Resource