Consider authentication in tests; small style fixes