test whenComplete