Move extension creation in extension test