Test to ensure bind_vars are not part of exception.

@alainjobart @liguo