Tested incorrect JSON answer

DRIed up tests
Tested error check on incorrect JSON response from _oauth2.get