Added a global tolerance and a per test tolerance.