Migrate tests to the Perfect framework