Add exception path testing