Resumbitting PR

This pr includes tests for

* create Docker vm (mock)
* testcases for bug #7
* testcase for bug #11