fixed CompileDataStructures pass
fixed timeout problem
added unit test
Merge pull request #743 from yilongli/fixing-issue-#738

fixing issue 738