added unit tests for IndexParser