unit tests: one more inclusion of <algorithm>