CLOUDIFY-2186 fix NPE in test by fixing the container mock