Trying to implement the algorithm in Wikipedia regarding key exchange
There have been several rLWE key exchange protocols proposed; what you're looking at is the protocol proposed by Professor Ding here.

In this protocol, the errors are assumed to be small even values; on the Wikipedia page, you can see that they always add the error vector in the form of $2e_i$.  Your test fixture is generating relatively large errors without any regard to whether they're even or odd.  Unless you fix that up, yes, the reconcilliation process will generate random values.  It still won't work great unless you make sure that the errors are actually small (you appear to be trying it with large errors); but you appear to be testing that deliberately.