Adding unit tests to test new error handling for image.pull
Fixing some code styling errors.