updated tests and oauth view