Added better assertions on SQLException tests