updated tests to handle user authentication and creation