Upon further review, this could probably just be `1 <= k < n`.  Not `1 < k < n`; also, the compare to `n` is actually extraneous given a `mod(n)` is already done.
All we really care about is the `0` case... so I guess `assert.notEqual(kB.signum(), 0, 'Invalid K value')` would be enough.