Added more tests.
Added metadata tests.