Rework auth tests and fix delete