test code for router