add default tick function to constructor arguments

one small note is that the existing test suite didn't exit the process in node, im not sure why exactly.