Test cases for Router error handling.