add promise.js test showing strange monomorphic restiction, and related test that passes