Update metadata tool test to work on Jenkins