Remove trailing whitespace from a few files, no functional change
Add tests for /svc/store_metadata and fix removing metadata values