ReplaceImageServerTest: fix broken unit tests after c5985aeb464