add test for deleting all stuff of a user when this users is deleted. Fixes #1447