Test codes for cgi