str: clean up tests so ccanlint doesn't complain about memory leaking.