more lcm tests + fix lcm for 0 + avoid overflow in lcm