successful test on several cases