Tests for deployment engine

* deployment engine tests;
* remove debug call;
* small style fix.