model ordering and tests