created server class and associated test file