Added unit tests for getRelativeOffset method

Change-Id: I45538f3e698229c003097c84edceac7ae4e4eb05
Merge "Added unit tests for getRelativeOffset method"