fixed weird error in tests