Fixed platform mock in tests