debugging test routine behaviour