added test for invalid platform