more debug messages, added a way to see debug messages while running tests