fixed bug in new test function that would not centre and scale test data according to the transformation computed from the training set