turned tests into a node module