Changing tests, not working with promises