Could we maybe get a test for this in the test_utils tests?