Fix failing unit test