Added tests to cover jtwig-core missed branches.