wierd freaking error with closures on first run of tests

Effectively I reran the testing file this morning and got a wierd error.
These two edits seem absolutely idiotic but they fix the issue. I'll be
investigating an actual solution later. I think it has to do with some
files being loaded out of order.