Split tests and reduce size where appropriate.

On my machine this drops the time for this test file from 50+ s to 16 s.