add server side unit testing