Fix setting of ENABLE_TESTING to generate test target