Fix issue in test, importing exceptions, and missing range function
Latest wunit compiler