Continue updating test_repository_tool.py.

Add test cases for the generate_*_metadata() functions.