Fixed a bug in the test code for mod_preinvn.