Fixes formatting type mismatch in tests