order manager and tests