add specs for the nbind and nodeify function