Tests of the OS X and iOS JavaScriptCore API with Objective-C and Swift