added tests to ensure proper NSCoding