Fixes errors in tests with APC installed but not enabled in CLI.