Add global platform var to tests so that mac and ios behaviours can be tested separately