Add div0 exception handling
Use flexible testing table