Renamed 'key_buffer' to 'key_buffer_size' and fixed the tests.