add unit test for getDockerLogs