Setting Max number of Parses to select in the test cases--> re.setMaxParses(1);
The issue related to this is discussed in this thread https://groups.google.com/forum/#!topic/opencog/wANan_8TY8s