adding unit tests for metadata parser. Finished metadata parser