Add tests for order dir bug

See #10 these tests should pass with it's fix