Add nose tests and example dataset

This additionally fixes a bug introduced in agglo.py by the last PR (which contained some ill-conceived one-line "fixes").