Small improvement to KmeansGUI and its test