fix map
Add test for bad constants