Only dump data when not getting correct result. Adding more test cases.