Actually, I've also been thinking about this. It maybe a good idea to check against the db but I wonder if that should be here or under tests/ since its outside the scope of API.