write tests for ::offsetSet