test of mock object code