Add #handles and #does_not_handle methods for easier route testing.