Replace bool by int to fix the test