fix spec with hint from dialyzer