Fix ntru_rand_tern()
Fix coefficients being left uninitialized
Fix test_ntru.c

* a nondeterministic key was being used to test deterministic encryption
* some test results were being ignored
* array indices out of range
* replace strncmp() with memcmp()