Fix tests and generate right url scheme.