adding tests and implementation for more route parsing