Adds functional tests for open/close index.