Write additional tests for PR

I'm way too spoiled from working in the JVM environment and how good testing/mocking stubbing is compared to plain JS - really need to get used to this