Adding tests for auth payload validation