Fixed tolerance error in unit test