fixed isTestGroup detection