Joshuashuotianiteration3

added test cases