finished writing tests for oauth controller