add unit tests for locationRouter
add unit tests for destroy