Fixed some bugs in the test scripts and added noise to the test data of the noisy tests