Fixed small bug in Test.java and improved its readability - added comments to new function FRItesting()