Randomized order of aggragate tests. Added teardown code to some unit tests.