fixed test.
fixed front end test on comment.
Merge branch 'master' into tian
fixed more tests and this closes #30.