Added sparse dictionary test code