Added more building track tests, fixed building track bugs, and added extra error handling in the http server