added unit and functional tests for order and orders controller