added tests for order factory