Refactor defsyntaxtest macro

The body is just data, so make it look like data.