unit tests for the server