Updated tests so that response are typecasted to boolean instead of
integer.