fix test failure in TestMetastoreService