Update sdtest.py

fixed condition for search/browse