fixed BadSignature test