Fix destructor for Statement classes
Add unit tests for ResultSet