Add test for respecting order

issue #7