use java 7

Test case feature
updated the code
circular fp test case added