Fixing test failure on testAttributes because of Executors assumption