added random booleans and tests