carry over properties on the host function, add tests
Merge pull request #7 from segmentio/fix/host-properties

carry over properties on the host function, add tests