update my_terminal, add test code