Finished tests and wrote remaining code for integration test authentication