add resource Specs

added tests for resource.  refactored dlapRepository