Add unit test for status changes.