Added endpoint for setting metadata and unified test cases.

14 jobs for refactor-processing in 24 minutes and 7 seconds (queued for 1 second)