unit tests for check_ip enabled