fix platform detection in tests