Added some debugging for tests.