bugfix broken unit test