fix ana test and patch coverage
Merge pull request #754 from Cadair/master

fix ana test and patch coverage