Stub KeyList class, fix remaining tests.