Fixed bug in clustering and added test.

This fixes a bug I found in the current code: `sorted()` is a python function, not numpy:

```
    if not np.all(np.unique(assignments) == np.sorted(medoids)):
AttributeError: 'module' object has no attribute 'sorted'
```

Also tests whether the hybrid clustering actually runs.