fix #7: Add unit tests for the server setup and the API