simplified the getitem test