Added server tests
Added unit tests for server