You do not need a test to fly from USVI or PR to mainland. You do need a test to enter PR or USVI from BVI as STT or SJU will be your first port of entry. I have only transited through STT (by air). A test 3 days prior was required.