Fixed autotest after $(G) reference changes (7a3024c1a5c5b35).