Added integration tests and user authentication checks