algorithm: last tests and sets for today