moved tests for raise exception to no-main
test raise exception in model block