Check emptiness of cache in flush-all-test
Fix time handlng error.

Wrong argument order, wrong units (seconds vs. milliseconds) etc.