wait and notify test