Add async test

I added a basic test using `async` option. I also refactored the tests to use the first argument on assertions as the expected value. I was using the other way around :(

And finally I used 4 spaces to indent to follow the rest of the code.