Added tests, fixed bug with missing float()

so int div was taking place.