add tests for server utils
Merge pull request #305 from lusini/add-tests-for-server-utils

add tests for server utils