Add more unit tests for names api and names api value