*levandov: new version of tests by heinle for the new ncfactor lib

cherry-picked to fd65244d