Created a test for artex that caused an exception and fixed artex to behave nicely.