Added authentication and edited tests to account for this