`LdaCgsQuerySampler` and unit test