Added fragment util, test class for fragments