Added tests for order endpoint