Refactor test_against_platforms