Move debug testing from all into debug-check target.