test against extending objects instead of functions