Fix bug when not testing output + debug message