make tests more promise-y