``getText`` spy is unused