Add test test_router_with_alloc_pool_and_gateway, follow pep guidelines