removed duplication from promisebased tests