add unit tests for deployment module

Change-Id: I198bb9bc5428bf32c2560210f5ad06c538aaa072