Added router tests. Fixed a route parse bug.