fixed some tests
added str::get_offset()