Adding some debugging code to the test