testSafeState error