Pre-routines and tests.