Fix isResolved and isRejected and add test for these two methods