improved resultset test