added sanity check instantiation test for oauth2api
moved everything around - tom, I know youll hate this