Update extractNode and add number case tests