added tests for orders