added tests for resources and subjects