Updated clearDatabase tests