Tweaked faulttest and sentencetest to output a list of tuples instead of printing to the console and added test cases