[test] Rewrite tests to use assume and use latest mocha.
[test] Dont test against port 8080, it's used for development.
[minor] Allow the callback to be optional.
[test] Added test for optional args