initial decision tree test logic