unit testing sqlexception