Added tests for SafeObject<T>