fix issuing query bug in grounding
moved serialization test folder into test
Merge pull request #18 from feiranwang/develop2

Fix test issues, clean up code