Fix mapping function arguments not being checked as expected
Test for errors in `mappings.js`