migrate coverage to test.sh