I found the problem. It has nothing to do whether device is rooted or not.
I command had a missing dot. It should be :
./adb shell pm disable com.example.com.testapp/.TestActivity
Now if I try to launch the component, it's blocked (the app stops working).