added named type mock test