Adding tests for next_pow_2