wrap computation intensive functions in hook free env when makeing coverage test

so that Travis CI job won't fail because of timeout.