testing practice for mock & stub