TESTBOX-65 #close
expectException() doesn't work on certain use cases.