[mod] refactor test in prevision of testing finally setattr