Few correction on promise.
Add validation promise and associated tests.