Fixed a memory leak in ActionsTest.