add future and promise test code