Add more unit tests for metadata types