stubbing of test for server