test cases for provider terminal manager

unfinished test cases