Move try_rm to test helpers