DBSCAN and test script.