New test interface

This should go in the companion object, so that it is executed only once per VM.