added a test for Apple's bug