When trying to fix a dockershim issue, there were not any unit tests for dockershim/exec.go and it was difficult to add the corresponding unit test for the bug. This adds the unit tests for avoiding such situation in the future.