Fixes in displaying computing offset. Updated test