experimenting with unit testing chained promise