unittests: can be run with 'python2 -m unittest genbtskey'