Fixed user_is_curator(collection) method and wrote tests for SitePermission.