Added tests for SubjectResource