Writing tests for complete_authentication.
Implemented complete_authentication.
Added bad-path test for user authentication.
Adding more error condition tests for nut validation.
Added tests for truncated base64 encoding.