tests ensure parent logic is executed only once