test_server: merge HelperMixin into common code