fix code review nits, add a few tests for readyToServe and getBaseUrl