starting to add unittests for server side