basic tests for util/active_queue and util/barrier; also making them more testable