3.0 test task

Update the test task to work with the new orm and other changes in the framework.

I also found some unused code and missing tests in the other bake tasks.