More unit tests
Fixed arithmetic in the impossible combinations code.