Homotopy theory of gauge groups over certain 7-manifolds