added functions to Order model

added functions to the Order model to complete the tests in tests.py,
and uncommented those tests so they run