Moving the test function to io, to see if this is the reason why is not being called