fix metadata init mochitest bug