Crossplatform tests; added new testcases