Improve testing for implements of an interface