TESTING: calculate_bits_per_char

The testing for calculate_bits_per_char. It was slightly wrong. Had been doing less than threshold, which made exact matches impossible. This is now fixed.

Also, changed test_generate_inputs to have a non-string input