add spec for mending
fix orders_count doubling issue