Test the --offline behaviour