add a test for loadRoute method
make things more testable