Started writing unit tests with mocha and node module "assert". TODO: more tests for easier, better and faster coding + testing.