use helper for value detection in map
add tests which fail now