Added in test and logic for route exclusions