add unit test for BasicURLDispatcher

1. add unit test for BasicURLDispatcher
2. add an init method to BasicURLDispatcher
3. adjust some field and property name