testing some promises code.