Fix Incorrect use of Mock Objects