test: AddTest: better error comparison