Fixed tests.
Get results as case classes in a prepared query.