fixed a small bug and added unit-test to detect bug
added tests for route namespace