fixed incorrect Debug class tests. Related #1323