server: Implement test mode for cgi-handler