Add some test cases for /termiante api