Added user tests for edit and authorization