Add test of panic behaviour for 100% statement coverage