Integrated visitor pattern into server for testing