Get rid of superfluous ResultInfo class.
Add test for resultset method.