integration: add keys API integration tests

@jonboulle Do you feel good about this thing?