Use error APIs in new sprdpl
Add exclude feature to test.py