The means testing can be a source of abuse and expensive.. but since it results in actual positive results, its worth it even if it costs more.
The whole argument that its cheaper to just uncoditionally give out the money is a poor one because we shouldnt be trying to make our help programs aas cheap as p[ossible, we should be trying to make sure they do less harm by not enabling people and ensure they do good by requiring the people get out of homelessness by putting conditions on the money that require them to be on a path out of homelessness.