add more unit tests for deployment

Change-Id: I1807b0891cb09f91a14a9f0ef86eb0da07cfc486