Józef Kucia : tests: Detect test platform dynamically.