fixed timing of purging in tests
checked that object being stubbed/verified is mock