Format code and add Map`s test case.