fix ACDC installation for test mode

fixes #5020