better assert raises structure