Document potential race condition
Define each assertion in a separate test
Fix linting issues