Add more tests for workorder

Also, correct a problem with _WorkOrderItemEditor where it would access
self.model.client, but the correct is self.model.order.client since self.model
is a WorkOrderItem and self.model.order is a WorkOrder.

Change-Id: I29097bb3cb21ce6a4e648ff6232d3775ca8baf2c