Add some tests

* medium does not clear automatically. call medium.clear() to clear it
* need to pass a length to get the current PN sequence. If length is not correct it generates a new one
* add tests for short PN sequences and test that another receiver with another PN sequence can not read the data