Added future library
Fixed promises for test