fixed promises tests