test monitor multiple invocations monitor , remove some old code