Refactor LangAttribute Api Test Cases

Bug: 51681
Change-Id: I5f23647d964beae9d3fdeb5a9b090ababe4e3e1c