add unit tests for new helperFunctions for server
update