database rules + testing environment