added test for setting status automatically when updating autnum