refactors learnyounode test9 to make it async