adding diagnostic tests

edited core to add diagnostic tests