test promise

test promise and add unitest