Fix failing unit test ResourceActionTest