Added entry traversal function and unit test for test data input.