improved test case
using sets instead of lists to avoid duplicates
replaced jboss loggers