Move up local_options check.
Adding new test cases for unique_mapping.