Implemented a feature which allows the user to delete a private analysis.
Added a check to ensure the user has access to the analysis before they are allowed to delete it.
Added a test for the delete_private_analysis method in the service layer.
Fixed a few tests that were failing due to the recent change to allow users to delete a private analysis.