Add a test to ensure the index is downloaded.

Signed-off-by: Magnus Therning <magnus@therning.org>