Port Phrefetch functionality testing to MiniTest
This merge request (should) solve the kinda-long-and-occasionally-fail problem of Phrefetch unit tests.
While this MR is already tested and seems to work properly, I thing further tests are needed. Thus, I will merge this after 1 or 3 more accepted MRs to the develop
branch and compare the coverage percentage.