Test that clustering works