#1048: Fix broken unit test