man tests are so much nicer with promises