A generic test creator