added tests for resources and subjects
Merge pull request #15 from salamanders-2014/addTestsForResources

added tests for resources and subjects