waitFor test