extracted test script, will test all unpacked *.nif files