[tests] reduce code duplications in tests, intr GenericActionTest.