Finished try_pop and added tests.
Finished wait_and_pop and made a simple test for it