more tests around exception handling