google mock used in depth first search unit tests