Used mapOrderedAndClose in unit test to make sure the order of elements in tests. fixes #135