Added test for boolean ndarray input
Added code for boolean ndarray input