ad strcpy and strlen with tests