[ImageAtlas] Implement a clear method and factorize unittest