Fixing tests with deleting by id