fixes getResourceClassInfo() to not throw NullPointerException for non-existent resource class references; adds test class