Passes model and index to emptyViewOptions.
Fix testcase typo