Remove useless defined Exception in tests

Change-Id: If02e325074f0bae85eb2671a92f2c2396ed9354d
Merge "Remove useless defined Exception in tests"