One thing is what is allowed, another is what is human readable.
Spaces are allowed in keys according to the specification and for those you don’t need quotes (double or single, each with their own use). It is just a scalar string containing a space.
As for human readability, I tend to think of a and test in a test as not belonging together. That is of course caused by what I am used to, and that e.g. variables in most programming languages cannot have spaces (although my one of my first languages, Algol 68, did allow that). For human readability I would suggest using a_test over "a test" (or 'a test'), but others might have different preferences.