refactored ActionTest