Add scan_keys tests.