Add unit tests for addOrder