Add unit test for wait_for_release/2