Mostly fixed bool() and added extra tests