add a test button, fixed a divide zero bug