include CoRE::CoAP in spec_helper.rb
Do not run performance test for log2 on JRuby.
Use number_of_bits_up_to.