Added self == 0 case for next_power_of_two(), and added tests for is_power_of_two()