Added missing forward declaration
Test for robustness against crashes in regards to null values
Clear out DerivedData before testing