Added oauth test and moved oauth to exporter pattern