[test] fix reload_application bugs