Test code from TD