fixed: bug where space for char* instead of char was allocated
added: test for copying strings