Node affiliations: Added tests. Fixes #14.