Adding unit tests for fragments module