fixed syntax error in map.
fixed non-length one error in error message caused by symbols, and added assertion tests