improving NNexus scripting , adding test