Added nock events

Also fixed bug in transformer with no content-type header