fixing test case with overly persistent mock