fix js binding bug and modify test code for route root change