Updated tests to work with the new diagrams backend interface. Also added EPS test generator.