bugfix in unit tests