Testing that clustering works