Fix routing path and added some tests.