conditioned debugging to a flag; runTests throws an error
merge