add spec tests for reverse_urls