Add test case for adding thenFinally after resolve or reject