Combining clustering and abundances of galaxy clusters to test cosmology and primordial non-Gaussianity