fixed mul function and moved tests around