nodelist uses Class inheritance
add constructor on mock node class