Add test for ensure latest with branch specified