adding method to remove todo by reference, plus unit tests