add spec for orders
small bugs fixed