add unit tests for image_specifier.go