Fix: a minor division by zero bug;
Add: a few more tests.