You need to move the #endif that trails test_request_set_preferred_network_type() to after this function.