fix unit tests after removing deprecated flushCache calls