Unit tests for v8