Add tests for fragment and iteartor

Iterator's decrement operation has been fixed accordin to tests.