More extensive tests of slack calculator, fixed bug