Fixed to post raw source instead of the YAML

Also DRYed up the tests a bit