Mock object testing