Tests: DRY out logging tests

How about we also name the test objects separately, to replace references like `module1Context.tests[ 0 ].testId` with `test1.testId`, then use those for the test names as well? That would help get rid of the annoying (for me anyway) array indicies and still reduce the duplication. Then, for example, for the definition of `module1Context` reuse `test1`.