fixing error in tets