Add tests for isolate()