Add test for async action

  • Write test to mock async actions