Add tests for calling generate with a route object.
Fixes passing route object to the generate object.
Merge pull request #67 from dawehner/generate-route-object

Generate route object