adding APC support and skipping tests if apc is missing