added test that strings are copied correctly