Added checks, fixed syntax
Updated unittest.cpp to include a test for error resources. ResourceManager::useNullForErrorRes actually does something now