Added more tests, isDeferred and isPromise