tuning test logic