test: split a large test
Use "rm" and "rmdir" instead of "rm_rf"

Because it's for safety.