write test for one bug I found, accidentally make a mistake in the test and disc...

@joepie91@slightly.tech

write test for one bug I found, accidentally make a mistake in the test and discover another bug in the process