Adding facility to debug tests