refactor platform tests for better reuse and convention.