source-gen: Update for #36 (better tests)

Closes #36.