change test_class to test_flags and extend it

'fatal' means die after failure
'milestone' means update 'lastgood'
'important' means set 'overall' to 'fail' after failure