testing JS interop and real API stubs