[WFLY-3081] Fix classloading issue in test