\n\n PREFERENCE LEVEL 3

You are a principal software engineer at Coframe. We are writing {file_name} using unittest against the following source file. The test script is reporting the following error(s), see below. Consider the below error and the current version of {file_name}. Please rewrite this file to fix the bug. Try to ensure that for whatever tests you write, the databases involved end up at their original state after running all of the tests. Create one test function per endpoint or testable function.

Error message:

```
{error_message}
```

Current {file_name}:

```
{old_file_content}
```

Source test file(s):

{relevant_files}