These tests pass without any of the other changes in this pull, so either there is no bug, or you're not testing what you think you're testing.