OAuth helpers for UnitTests