Add tests

Adds a test suite :) 

I've also added some blank tests, assuming it should log errors if things break. If it would be better to move them to a separate PR with the code, that's fine.

Please review @perry and @incuna/js 
Possibly add  a test for matching by name with params, as that is a different set of inputs which could potentially be broken as well.