fix route printing
add tests for route printing