Removed sql statements from tests