add tests for ImageManager