Some more shortcut syntax in tests

I missed these in the previous commit
source-gen: Use shorter syntax for tests

See 592fcfd.