added beforetest method for ServerTest