fixed test for status