Need some pointers to implement scheme based routing

I have made a pull request here implementing scheme based routing in Mux. I don’t know how to test it (details are mentioned in the pull request), could someone please take a look at it.

Thanks in advance.