database testing internal