added string tests and dangling pointers test