routines in test