add unit testing for route decoding