Fix tests for Opera Mini 8 on iOS

Ref. #60
Add `cleanupOS` utility function