Added units tests for order model