Fix tests.

I really need to make that a proper error, not just let map's exception
get through.