fix delete char issue when adding resources to test