Fix failing test after bug fix