Added a test_mode argument to Report subs and tests, to increase test coverage