Test index code, add test fixture for memory source.