code review 2 remove default randomizer and mock send/open separately