more unit testing on server side