Reset test router or backends in one call

By also updating the settings when calling `set_router`, this should make it a little bit easier to reset the router or backends in the middle of a test.