Adding a test for unique_mapping.
make DEBUG driver skip graceful crash routine.
Rewrite unique_mapping, no more memory leak.