Minor type fix for tests