Nest the tests in a test key in the YAML

This is to allow for expected top level additional metadata (for
example fixtures or pragmas).