Adding some debug statements in the tests

This helps in better asserting the reason of the test failures