modified test_scale_error(), to check the error message.