QFCgiRecord tests

and fix a bug...