add .coveragerc file and safe_import test