Change CMS tests to use a library context.