Integration test for Order and add table.

fix error handling and http status.