Improve unit test on metatata builder.