only record lasttestsent when it was successful