Changes test_scan_show_fields() to use assertRaises().