simplified ipv4 test function
fixed formatting and typo