Add test cases for offset().