adding new tests
insertion order bugfix and basic tests for limiting results added