Fix error in tests