Fixed so promises gets test when npm test