add support for compressed keys & more tests.