Added SqlContext Failure tests