Add end event test to the cache-clean.
Little fix in the install tests, closes #258.