Async tests

Adds @snanda85 patch and some fixes to it as jshint was not passing.
Also fixes all tests and added a few test cases for full and async params.