Pre test interface

This is the first part of #1289, but since that PR will likely take some time, already the first part.