pass tests broken by removing promises