added tests for empty fragment