fix a problem that caused compilation errors on using main app classes
in tests