bugfix in unittest