Change sha256 to hmac with sha256
Add onlyErrors parametter to getLogs
Fix the tests on keys