added seek method and test