fixes broken tests

Forgot to run the tests modified in the previous commit. The tests for
loop elimination and nested loops were borked. Stupid.
transmogrifies more frontend tests

* moved a lot of stuff around
* added a couple of tests
* removed a couple of tests

More readable and straightforward.