Recreates api-stub testing problem, where tests fail with testem but pass otherwise.