Created Unit tests for getRoutesByName with defined idPrefix.
Fixed getRoutesByName to work if $idPrefix is not defined.
Added Tests to cover those cases.