Refactoring for fragment tests @author : parasur1