Fixed ServiceReference conversion test in case of an invalid reference.