adding dt to the header of testScaling output;
fixed logic in testScaling stop condition