ActionChainHandlerTest: add missins @suppressWarnings
ActionChainHandlerTest: use generics and for-each where appropriate
ActionChainHandlerTest: completely avoid random strings to restore determinism

When the random key turned out to be numeric, LookupException was thrown.