[metadata][test] First draft for unit test

5 jobs for !3176 with feature/metadata-extraction-unit-test
merge request