Whitespace cleanup and reformatting.
Exclude backend and upgrade_version from the test metadata if unspecified.

This removes the problem where upgrade_version is set to undefined and
then included in the test metadata, overriding the test's defaults.