main/motif: move from testing