Port test cases to mocha.
Cast id to string, port test cases to mocha.