Bug947816 metadata unit test