fix failing functional tests
correct parameter passing for promises