migrate tests to mocha+chai, fixes #15