write gaia basic map test case and fix some bugs.