testing wait status