minor bug fix on order, added spec