The way how they tested it was nothing sort of genius. I am sure you know the story, but in case other forum posters are interested: before officially release APFS to the public Apple included a hidden beta version of it in the production iOS. The main file system would still be HFS+, but every operation was mirrored in the APFS backend and they stored two sets of metadata: HFS+ and APFS. The first was the "real" filesystem, the second was the shadow filesystem used to test drive APFS. This gave them access to millions of test platforms and tons of real, not artificial data to get comprehensive coverage and problem identification. Extremely impressive stuff.