Unit test change, using fail instead of assertTrue for caught exceptions