test script and documentation in to_nexml function