Added proper unit test to avoid starting server so port won't get clogged up