added logic to short circuit APO orders
added tests for APO orders -- pushing to heroku