doing testing for async actions