KeyCollectionTest.encodeDecodeTest() cleanup

Signed-off-by: Christian Lüthold <biocodr@gmail.com>
bugfix in: KeyCollection.convert()

Signed-off-by: Christian Lüthold <biocodr@gmail.com>