Rename back to Frames, put serious work into first test case.
Add layer test (which exposed a bug, so now let's fix the bug)
Make render order consistent even in case of identical frame and strata.
Split unit test code into multiple files.