Fixed test and fixed copy bug.