flush() removes all active function expectations