fix some error in tests