added test cases for stp_test