Add expected exception test
Record correct failure in case of unexpected exception