add testcases for address generation
fix bug for version != 0
process uncompressed pubkeys as well