PLD: refactor and test project-metadata