Function routing and test seperation