completed collection logics and test cases