[WFLY-333][BZ-1126287] add a test for the wait-time statistic

Adds a test for https://issues.jboss.org/browse/WFLY-333
Done.