Updated tests, fix for variable statement emit
centralized getPromiseConstructor to checker.ts