fix ana test and patch coverage