Add compile_mappings with basic test