Fix unittest assert raises.