Added test for setupAssociations and setupSync.