Replaced SQL with Testing