Added tests for new methods: saveFragmentType and getAllFragmentTypes

Added tests for new methods: saveFragmentType and getAllFragmentTypes