Testing JavaScript internals