Fix errors in tests.
Layout basic metdatas structure.