Added self-referential test to wait_list.

For #742