Added analysis logic to filter test