[test] Make sure install ends before running next test