add check node type
fix make test target