move mock object declaration.
Added second test.