Fixed a panic from Rows.Next()
Add tests for Prepare