Added lock_mem tool.
Added test_dict.