added unit test for CheckPrivateKeys