Fixed debugging code test