Added a functional resource waiter test.