Fix remaining tests for multi-arch

* Discare the cache for multi-arch
* Adapt tests after having moved the mark_install in the separate thread