Add missing conditional compilation to the testing classes for use standalone from Core Data