Test devise with some error