added server test function