Add tests for creating mappings by ID