Replace path in test state.