fix some tests and resources, add fake autoreg authenticated mechnism