add weight rule unit test
add route unit test
add unit test