Added test to check PDOexception