Let sql2rdd and sql functions throw exceptions when errors occur.
Improved testing using SharkContext.sql2rdd and SharkContext.sql.