Add tests for helpers

We should maybe also assert that ``type`` and ``id`` are passed through as expected.