Test helper for mock objects