refactor test examples
Merge pull request #175 from qhzhou/inverted-index

refactor test examples