Affiliations: Tests added for setting affiliations. Fixes #16