Added a test for refresh action