Added a thenable integration to replace jquery integration test