Test preparation of hash identifiers and query operators