Added unit tests for Router.js