Expands test coverage for ResourceClasses

Several of the methods in the ResourceClasses controller were not being
tested. This covers everything except for some exception-handling cases.

Also fixes unrelated pep8 issues in the test itself.

Change-Id: I85531de7b82eabef0a53592c8044b10546659549