Fix cache_update possibility

Use the correct variable name
Really fix cache_update possibility

Use the correct variable name, again
Add self-created repository for tests

Add a complete repository structure with dummy packages. This repository
can be used for unittests.