Fixed sqltest