added check if order was passed
refactored data -> order
added tests for application logic (create order)