better test coverage for inverted loops