add debug output to tests