add tests for platforms.py