Added macro for asynchronous checkers

Implemented new macro that helps with writing tests for asynchronous functions