I think the `$routes` variable is unnecessary here. The tests should follow the example of `ToroUtil::url_for`:

```php

class IndexHandler {
    // foo
}

class HelloHandler {
    // foo
}

Toro::serve(array(
    "/" => "IndexHandler",
    "/hello/:alpha" => "HelloHandler",
));

// and

$this->assertEquals('/', ToroUtil::url_for('IndexHandler')); 
```