added server test code
server tests added