adds tests for optional and named mappings