making the mirror command work w/ tests