Fix error in unit tests