Wrote test for server