Fix failing isDivisible unit test