Get getIndexOfObject and tests