Add basic async test
Refactor integration tests

Use assertion macros correctly and reindent using 4 spaces as
indentation
Merge pull request #133 from edgurgel/add-async-test

Add async test