Remove direct calls to TestContext

Update `prepareTestInstance` so that direct calls are no longer made
to `TestContext`.

Prior to this commit if debug logging were enabled the TestContext
would be accessed and an exception would be thrown when using Spring 4.

Fixes gh-52