Fixed segfaulting test for str_erase