improved tests that check the element order (#65)
added test to detect order bug (#65)
refactoring: extracted method and removed duplicated code, improved failure message
fixed order bug (fixes #65)