test() updated, all checking and warning messages working.