add test for next_power_of_2 with bigger values, fix meta-function